.top-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 750px;
  height: 327px;
  background: rgba(18, 179, 255, 1);

  &::after {
    position: absolute;
    bottom: -56px;
    left: 0;
    right: 0;
    content: '';
    width: 750px;
    height: 120px;
    background: rgba(18, 179, 255, 1);
    border-radius: 50%;
  }
}
.location-suc{
  width: 100vw;
  height: 100vh;
}
.search-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto;
  width: 702px;
  height: 60px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 80px;

  .text {
    position: relative;
    padding-left: 44px;
    display: inline-flex;
    opacity: 0.6;
    color: #fff;
    font-size: 26px;

    &::before {
      position: absolute;
      left: 0;
      top: 50%;
      margin-top: -15px;
      content: '';
      background-size: contain;
      width: 28px;
      height: 30px;
    }
  }
}

.store-info {
  position: relative;
  z-index: 1;
  display: flex;
  padding: 0 24px 32px;
  color: #fff;

  .store-info-content {
    position: relative;
    display: flex;
    width: 538px;
    overflow: hidden;

    .store-info-context {
      width: 408px;

      .name {
        position: relative;

        .strong {
          position: relative;
          max-width: 100%;
          padding-right: 40px;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          font-size: 28px;
          display: inline-block;
          box-sizing: border-box;
        }

        .icon {
          position: absolute;
          top: 50%;
          right: 0px;
          margin-top: -15px;
          width: 30px;
          height: 30px;
          font-size: 20px;
          color: #12B3FF;
          display: flex;
          align-items: center;
          justify-content: center;

          .arrow {
            position: relative;
            z-index: 1;
          }

          &::before {
            position: absolute;
            left: 0;
            top: 0;
            content: '';
            background-color: #fff;
            width: 30px;
            height: 30px;
            border-radius: 50%;
          }
        }
      }

      .address {
        font-size: 24px;
        width: 100%;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        opacity: 0.8;
        margin-top: -8px;
      }
    }

    .phone {
      width: 130px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    &::after {
      position: absolute;
      top: 0;
      right: 0;
      width: 2px;
      height: 68px;
      content: '';
      opacity: 0.54;
      background: rgba(255, 255, 255, 1);
    }
  }

  .store-distance {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 162px;
    flex-shrink: 0;

    .num {
      font-size: 26px;
      color: #fff;
      margin-left: 8px;

      &::after {
        content: 'km';
        font-size: 24px;
        color: #fff;
      }
    }
  }
}

.view-group {
  position: relative;
  z-index: 2;
  background-color: #fff;
  width: 702px;
  border-radius: 12px;
  margin: 0 auto 20px;
  overflow: hidden;
}

.card-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #E5E5E5;
  height: 80px;
  box-sizing: border-box;
  background-color: #fff;
  padding: 0 24px;

  &.no-border {
    border-bottom: none;
  }

  .text {
    display: flex;
    align-items: center;
    font-size: 28px;
    color: #333333;

    .text-img {
      width: 44px;
      height: 44px;
      display: block;
      flex-shrink: 0;
      margin-right: 8px;
    }
  }

  .more {
    display: flex;
    align-items: center;

    .span {
      color: #999999;
      font-size: 24px;
      margin-right: 6px;
    }
  }
}

.nav-content {
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  // display: grid;
  // grid-template-columns: repeat(5, auto);
  // gap: 16px 50px;
  width: 100%;

  .nav-list {
    // width: 90px;
    width: 20%;
    height: 0;
    padding-bottom: 20%;
    position: relative;

    .text-img {
      width: 70%;
      height: 70%;
      display: block;
      position: absolute;
      top: 0;
      left: 15%;
    }

    .nav-text {
      width: 100%;
      position: absolute;
      bottom: 0;
      text-align: center;
      font-size: 24px;
      color: #333;
      white-space: nowrap;
    }
  }

  .nav-list:nth-child(-n+5){
    margin-bottom: 10px;
  }

  .nav-list-eight{
    @extend .nav-list;
    width: 25%;
    padding-bottom: 25%;
  }

  .nav-list-eight:nth-child(-n+4){
    margin-bottom: 10px;
  }
}

.grid-layout {
  height: 294px;
  display: grid;
  grid-template-columns: repeat(2, 50%);

  .child-View {
    // border-top: 2px solid #E5E5E5;
    padding: 12px;
    box-sizing: border-box;

    &:first-child {
      border-right: 2px solid #e5e5e5;
      grid-row-start: 1;
      grid-row-end: 3;
    }

    &:last-child {
      border-top: 2px solid #E5E5E5;
    }

    .img {
      width: 100%;
      height: 100%;
      display: block;
    }

  }
}

.goods-menu {
  margin-bottom: 20px;
  height: 88px;
  padding: 0 24px;

  .menu {
    &.fixed {
      position: fixed;
      top: 0;
      left: 0;
      background-color: #fff;
      padding: 0 24px;
      box-sizing: border-box;
      z-index: 6;
    }

    display: flex;
    width: 100%;
    height: 88px;
    overflow-x: auto;
    transition: background-color 0.5s ease;

    .child-menu {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 175px;
      height: 100%;
      flex: 0 0 auto;

      .text {
        position: relative;
        font-size: 28px;
        color: #999;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        padding: 10px 2px;
        box-sizing: border-box;

        &::after {
          position: absolute;
          left: 50%;
          bottom: 0;
          transform: translate3d(-50%, 0, 0);
          width: 100%;
          height: 4px;
          background: rgba(18, 179, 255, 1);
          border-radius: 2px;
          content: '';
          padding: 0 10px;
          display: none;
        }
      }

      &.curr .text {
        color: #12B3FF;

        &::after {
          display: block;
        }
      }
    }
  }
}

.goods-content {
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;

  .goods-list {
    position: relative;
    width: 340px;
    border-radius: 12px;
    height: 504px;
    background-color: #fff;
    margin-bottom: 20px;
    overflow: hidden;

    &:nth-child(even) {
      margin-left: 20px;
    }

    .service-goods-pic {
      width: 341px;
      height: 504px;
      display: block;
      margin: 0 auto;
    }

    .goods-pic {
      width: 341px;
      height: 346px;
      display: block;
      margin: 0 auto 20px;
    }

    .name {
      width: 100%;
      padding: 0 20px;
      font-size: 26px;
      height: 75px;
      font-family: PingFang SC;
      font-weight: 500;
      display: -webkit-box;
      /* autoprefixer: off */
      -webkit-box-orient: vertical;
      /* autoprefixer: on */
      -webkit-line-clamp: 2;
      text-overflow: ellipsis;
      overflow: hidden;
      box-sizing: border-box;
      // white-space: nowrap;
    }

    .price-info {
      position: absolute;
      bottom: 20px;
      left: 0;
      right: 0;
      display: flex;
      padding-top: 6px;
      justify-content: space-between;
      align-items: center;
      padding: 0 24px;

      .price {
        color: #FF3B30;
        font-size: 32px;

        &::before {
          content: '￥';
          font-size: 20px;
        }

        &::after {
          content: '起';
          font-size: 20px;
          margin-left: 8px;
          color: #666666;
        }
      }

      .cart-img {
        width: 44px;
        height: 44px;
      }
    }

  }
}
.promotion{
  margin: 24px;
  border-radius: 12px;
  overflow: hidden;
  .promotion-head{
    padding: 24px;
    display: flex;
    background-color: #fff;
    .text-img {
      width: 44px;
      height: 44px;
      display: block;
      flex-shrink: 0;
      margin-right: 8px;
    }
    .text{
      font-size: 28rpx;
      color: #333333;
    }
  }
  .promotion-body{
    padding: 24px;
    margin-top: 3px;
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    .promotion-body-item{
        max-width: 202px;
      .goods-img{
        width: 202px;
        height: 202px;
        background: #F5F5F5;
        opacity: 1;
        border-radius: 12px;
        overflow: hidden;
      }
      .goods-name{
        margin-top: 10px;
        margin-bottom: 10px;
        height: 74px;
        max-height: 74px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        .label-img{
          width: 68px;
          height: 32px;
          float: left;
          margin-right: 5px;
        }
        .goods-title{
          margin-left: 5px;
          font-size: 26px;
          color: #333333;
        }
      }
      .goods-operation {
        display: flex;
        justify-content: space-between;
        .make-mone{
          font-size: 20px;
          color: #FF3B30;
        }
        .price{
          font-size: 32px;
          color: #FF3B30;
        }
        .generalize-img{
          width: 44px;
          height: 44px;
        }
      }
    }
  }
}
